﻿@model S4Store.Models.AfterSaleCarKPI.WorkshopManagersListModel
@{
    ViewBag.Title = "MonthConfig";
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
@{int i = 0;}
<form class="pageForm addpage" action="@Url.Action("ModifyBackInputWorkshopManagerDayInput")" method="post">
<div style="height: 100%; width: 100%; overflow: hidden" class="verticalSplitContainer">
     <div class="" style="overflow: auto;" ratio="#150">
         <table  class="rpttable"  style="border-collapse:collapse;">
            <tr height="140"  class="vtr">
               <th class="yellow" ><div class="wd100 pd510"><div class="wd20">车间主管姓名</div></div>
                </th>
               <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月工单总数</div></div>
                </th>

                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月累计入厂台次</div></div>
                </th>

                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">部门累计维修产值</div></div>
                </th>
                
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">本月已交车总数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">技工出勤时间总和</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">部门定额工时累计总数</div></div>
                </th>

                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">功能完好设备工具完好数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">无效工单数量</div></div>
                </th>
               <th class="yellow" ><div class="wd30 pd510"><div class="wd20">预计时间前交车总数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">当日入厂当日交车总数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">技工实际作业时间总和</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">部门实际工时累计总数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">交车后回厂返修总数</div></div>
                </th>
            </tr>
</table>
</div>
<div class="" style="overflow: auto;" ratio="*">
 <table  class="rpttable"  style="border-collapse:collapse;">
            @foreach (var employee in Model.Employees)
            {
                var item = Model.DayInputs.Where(o => o.EmployeeId == employee.Id).FirstOrDefault();
                if (item == null)
                {
                    item = new S4Store.Domain.AfterSaleKpi.AfterSaleWorkshopManagerDayInput();
                }
                <tr>
                    <td><div class="wd100 pd510">@employee.Name<input type="hidden" name="afterSaleCarlist[@i].EmployeeId" value="@employee.Id" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYGDZS" value="@item.BYGDZS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].LYLJRCTC" value="@item.LYLJRCTC" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYLJWXCZ" value="@item.BYLJWXCZ" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYYJCZS" value="@item.BYYJCZS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].JGCQSJZH" value="@item.JGCQSJZH" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BMDEGSLJZS" value="@item.BMDEGSLJZS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].GNWHSBGJZS" value="@item.GNWHSBGJZS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].WXGDSL" value="@item.WXGDSL" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].YJSJQJCZS" value="@item.YJSJQJCZS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].DRRCDRJCZS" value="@item.DRRCDRJCZS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].JGSJZYSJZH" value="@item.JGSJZYSJZH" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BMSJGSLJZS" value="@item.BMSJGSLJZS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].JCHHCFXZS" value="@item.JCHHCFXZS" /></div>
                    </td>
                </tr>
               i++;
            }
        </table>
    </div>
    <input type="hidden" name="y" value="@Model.Date.Year" /> <input type="hidden" name="m" value="@Model.Date.Month" />  <input type="hidden" name="d" value="@Model.Date.Day" />
        <div class="formBar" ratio="#30">
    @if (!Model.isconfirmed || CurrentUser.Position == S4Store.Domain.Position.SystemManager)
    {
        <ul>
            <li>
                <div class="simplebutton">
                    <div class="r">
                        <button type="button" class="submit">
                            保存</button></div>
                </div>
            </li>
            <li>确认数据：<input type="checkbox" name="isconfirm" value="true" /></li>
        </ul>
    }
    </div>
</div>
</form>
